@echo off
chcp 65001 > nul
cls

echo 检查MySQL MCP Server进程是否运行中...

:: 查找python进程
for /f "tokens=2" %%a in ('tasklist /FI "IMAGENAME eq python.exe" /FI "WINDOWTITLE eq TraeAI-7" ^| findstr /i "python.exe"') do set PID=%%a

if defined PID (
    echo MySQL MCP Server进程正在运行中
    echo 进程ID: %PID%
    echo 可以尝试在MCP界面中添加MySQL服务器并测试连接
) else (
    echo MySQL MCP Server进程未运行
    echo 请先运行start_mysql_mcp.bat启动服务
)

pause